package com.weic.easycache.framework.biz;

import java.sql.SQLException;
import java.util.Map;

import com.j256.ormlite.dao.CloseableIterator;
import com.j256.ormlite.stmt.QueryBuilder;
import com.weic.easycache.framework.Param;
import com.weic.easycache.framework.json.JsonBase;

public abstract class AbsImgBiz<R> extends AbsBaseBiz<Param, R> {
	
	@Override
	public abstract R getResult();
	
	@Override
	public abstract <P> void update(int taskId, String url, Map<String, P> images);

	@Override
	public abstract String[] fetchImgUrls(int taskId);
	
	@Override
	public <T> String update(int taskId, CloseableIterator<T> iterator) throws SQLException {
		return null;
	}

	@Override
	public <T, ID> void createQuery(int taskId, QueryBuilder<T, ID> queryBuilder) throws SQLException {}


	@Override
	public <D> String update(int taskId, JsonBase<D> json, boolean bgTask) {
		return RESULT_OK;
	}
}
